export const triggerXhrWithNoQuery = () => {
  const oReq = new XMLHttpRequest()
  oReq.addEventListener('load', () => {})
  oReq.open('POST', 'http://localhost:8080/oncollect/http')
  oReq.send()
  oReq.timeout = 1000
}

export const triggerXhrWithQuery = () => {
  const oReq = new XMLHttpRequest()
  oReq.addEventListener('load', () => {})
  oReq.open('POST', 'http://localhost:8080/oncollect/http?query=true')
  oReq.send()
  oReq.timeout = 1000
}

export const triggerXhrButNoDomain = () => {
  const oReq = new XMLHttpRequest()
  oReq.addEventListener('load', () => {})
  oReq.open('POST', '/oncollect/http')
  oReq.send()
  oReq.timeout = 1000
}

export const triggerXhrWithQueryButNoDomain = () => {
  const oReq = new XMLHttpRequest()
  oReq.addEventListener('load', () => {})
  oReq.open('POST', '/oncollect/http?query=true')
  oReq.send()
  oReq.timeout = 1000
}
